package com.ticket.sass.ticketserver.controller

import com.github.xiaoymin.knife4j.annotations.ApiSupport
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/")
@ApiSupport(order = 0)
@Api(tags = ["默认"])
class IndexController {
    @GetMapping
    @ApiOperation("首页")
    fun index(): String {
        return "hello"
    }

    @ApiOperation("test")
    @PostMapping
    fun test() {
    }
}